package info.tsukaworld.gui;

import info.tsukaworld.actor.Player;
import java.awt.event.*;

public class GameMouseListener extends MouseAdapter
{
    //Current Mouse positions
    private int x = 0;
    private int y = 0;
    //Last positions that was clicked
    private int clickedX = 0;
    private int clickedY = 0;
    
    public void mouseMoved(MouseEvent e)
    {
       x = e.getX();
       y = e.getY();
    }
    
   public int getX()
   { return x; }
   
   public int getY()
   { return y; }
   
   public void mouseClicked(MouseEvent e)
   {
       clickedX = e.getX();
       clickedY = e.getY();
   }
   
   public int getClickedX()
   { return clickedX; }
   
   public int getClickedY()
   { return clickedY; } 
}